﻿import request from '/@/utils/request';
enum Api {
  AddIotdevicewarn = '/api/iotdevicewarn/add',
  DeleteIotdevicewarn = '/api/iotdevicewarn/delete',
  UpdateIotdevicewarn = '/api/iotdevicewarn/update',
  PageIotdevicewarn = '/api/iotdevicewarn/page',
  DetailIotdevicewarn = '/api/iotdevicewarn/detail',
}

// 增加设备预警
export const addIotdevicewarn = (params?: any) =>
	request({
		url: Api.AddIotdevicewarn,
		method: 'post',
		data: params,
	});

// 删除设备预警
export const deleteIotdevicewarn = (params?: any) => 
	request({
			url: Api.DeleteIotdevicewarn,
			method: 'post',
			data: params,
		});

// 编辑设备预警
export const updateIotdevicewarn = (params?: any) => 
	request({
			url: Api.UpdateIotdevicewarn,
			method: 'post',
			data: params,
		});

// 分页查询设备预警
export const pageIotdevicewarn = (params?: any) => 
	request({
			url: Api.PageIotdevicewarn,
			method: 'post',
			data: params,
		});

// 详情设备预警
export const detailIotdevicewarn = (id: any) => 
	request({
			url: Api.DetailIotdevicewarn,
			method: 'get',
			data: { id },
		});


